package com.example.yls.demob;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

/**
 * Created by yls on 2018/11/6.
 */

abstract public class BaseActivity extends FragmentActivity implements MyReceiver.NetEvevt {

    public static MyReceiver.NetEvevt evevt;
    /**
     * 网络类型
     */
    private int netMobile;

    @Override
    protected void onCreate(Bundle arg0) {

        super.onCreate(arg0);
        evevt = this;
        inspectNet();
    }


    public boolean inspectNet() {
        this.netMobile = NetUtil.getNetWorkState(BaseActivity.this);
        return isNetConnect();

       
    }

    public boolean isNetConnect() {
        return netConnect;
    }
}
